package com.lanjiyin.cloud.question.frount.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.lanjiyin.cloud.api.dto.QuestionDto;
import com.lanjiyin.cloud.api.vo.QuestionChapterCommonVo;
import com.lanjiyin.cloud.common.msg.Result;
import com.lanjiyin.cloud.question.frount.service.QuestionService;

@RestController
@RequestMapping("/frount/question")
public class QuestionController {
	
	 @Autowired
	private QuestionService questionService;
	 
	 
	 @GetMapping("selectList")
	public Result<List<QuestionChapterCommonVo>> selectList(QuestionDto questionDto){
		
		 List<QuestionChapterCommonVo> list = questionService.selectList(questionDto);
		return new Result<List<QuestionChapterCommonVo>>(list);
	}
	
	

}
